package factory;

public class ComputerEnginerr {
	
	Cpu cpu = null;
	Mainboard mainboard = null;
	
	public void makeComputer(int cpuType, int mainbord) {
		prepareHardwares(cpuType, mainbord);
	}
	
	
	private void prepareHardwares(int cpuType, int mainbord) {
		
		cpu = CpuFactory.createCpu(cpuType);
		
		mainboard = mainboardFactory.createMainboard(mainbord);
		
		cpu.calculate();
		
		mainboard.installCPU();
	}
}
